package com.chris.springboot;

import com.chris.springboot.autoConfigTest.EnableAutoImport;
import com.chris.springboot.autoConfigTest.FirstClass;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ImportSelector;

@SpringBootApplication
@EnableAutoImport
public class ImportSlectorMain {
    public static void main(String[] args) {
        ConfigurableApplicationContext ca = SpringApplication.run(ImportSlectorMain.class,args);
        FirstClass fc = ca.getBean(FirstClass.class);
        fc.AutoConfig();
    }
}
